package org.eclipse.emf.extensions.postgresql;

import org.eclipse.emf.extensions.DBTypeProvider;

public class PostgreTypeProvider extends DBTypeProvider {
    public static final PostgreTypeProvider INSTANCE=new PostgreTypeProvider();

    private PostgreTypeProvider() {
    }

    @Override
    public String getIntType() {
        return "INT"; //$NON-NLS-1$
    }

    @Override
    public String getStringType() {
        return "TEXT"; //$NON-NLS-1$
    }

    @Override
    public String getBooleanType() {
        return "BOOLEAN"; //$NON-NLS-1$
    }

    @Override
    public String getLongType() {
        return "BIGINT"; //$NON-NLS-1$
    }

    @Override
    public String getDoubleType() {
        return "FLOAT8"; //$NON-NLS-1$
    }

    @Override
    public String getFloatType() {
        return "FLOAT4"; //$NON-NLS-1$
    }

    @Override
    public String getByteArrayType() {
        return "BYTEA"; //$NON-NLS-1$
    }

    @Override
    public String getDateType() {
        return "TIMESTAMP"; //$NON-NLS-1$
    }

    @Override
    public String getClassNameType() {
        return "VARCHAR(256)"; //$NON-NLS-1$
    }
}
